package com.mapbased.wfw.bind;

import com.mapbased.wfw.*;

/**
 * <p>Title: </p>
 *
 * <p>Description:binding for configurable content </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: mapbased.com</p>
 *
 * @author chy_hs(Baily)
 * @version 1.0
 */
public class PageConfigBinding
    extends AbstractBinding
{
    public PageConfigBinding(String exp)
    {
        super(exp);
    }
  private  Page page;

    /**
     * getDirectValue
     *
     * @param context RenderContext
     * @return Object
     * @todo Implement this com.mapbased.wfw.bind.AbstractBinding method
     */
    protected Object getDirectValue(RenderContext rc)
    {
        return this.page.getPageHandler().getPageConfig(
            rc.global,this.attributeName.trim(),"");
    }

    public void setPage(Page page)
    {
        this.page=page;
    }

}
